package com.oscar.practice.shiro.model.user;

import java.util.Date;

import com.oscar.practice.shiro.model.BaseInfo;

/**
 * 用户
 *
 * @author tongyufu
 *
 */
public class UserInfo extends BaseInfo {

    private static final long serialVersionUID = 1L;
    private Integer           id;
    private String            username;
    private String            password;
    private String            confirmPassowrd;
    private String            truename;
    private Integer           loginCount;           //登录次数
    private String            salt;
    private String            locked;               //0:未锁定；1:已锁定
    private Boolean           rememberMe;
    private String            captcha;              //验证码
    private Date              createAt;

    @Override
    public String toString() {
        return this.truename;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getConfirmPassowrd() {
        return confirmPassowrd;
    }

    public void setConfirmPassowrd(String confirmPassowrd) {
        this.confirmPassowrd = confirmPassowrd;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getLocked() {
        return locked;
    }

    public void setLocked(String locked) {
        this.locked = locked;
    }

    public Boolean getRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public Integer getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(Integer loginCount) {
        this.loginCount = loginCount;
    }

}
